import request from '@/utils/request'

// 查询考试练习任务列表

export function listExams(params) {
  return request({
    url: '/schoolmanage/exams/list',
    method: 'get',
    params
  })
}

// 查询考试练习任务详细
export function getExams(examId) {
  return request({
    url: '/schoolmanage/exams/' + examId,
    method: 'get'
  })
}

// 新增考试练习任务
export function addExams(data) {
  return request({
    url: '/schoolmanage/exams',
    method: 'post',
    data: data
  })
}

// 修改考试练习任务
export function updateExams(data) {
  return request({
    url: '/schoolmanage/exams',
    method: 'put',
    data: data
  })
}

// 删除考试练习任务
export function delExams(examId) {
  return request({
    url: '/schoolmanage/exams/' + examId,
    method: 'delete'
  })
}

// 根据labId查询考试列表
